<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// use think\Db;

//首页
Route::get('/', 'index/index/content');
//前台路由部分
// $cate = Db::name('gw_cate')
//     ->alias('a')
//     ->leftjoin('gw_template g', 'a.template_id = g.id')
//     ->field('a.catdir')
//     ->where('a.status', 1)
//     ->select();

// foreach ($cate as $k => $v) {
Route::get('/index/:catdir', 'index/index/content');
// }
Route::get('/index/', 'index/index/content');
Route::get('/notFind', 'index/index/notFind');

return [

];
